import './assets/style/css.css'
console.info('加载 css')

import './assets/style/less.less'
console.info('加载 less')

import testJsx from './components/test.jsx'
console.info('加载 jsx', testJsx)

import _ from 'lodash'
console.info('加载第三方 js', _.each)

import moment from 'moment'
import 'moment/locale/zh-cn'
moment.locale('zh-cn')
console.info('moment-locale', moment.locale())
console.info('加载 moment', moment().format())

function insertImgElem(imgFile) {
	const img = new Image()
	img.src = imgFile
	document.body.appendChild(img)
}
import imgFile1 from './assets/img/1.png'
insertImgElem(imgFile1)
console.info('加载图片', ENV)

console.info('环境变量-ENV', ENV)

setTimeout(() => {
	import('./components/asyncImport.js').then((res) => {
		console.log('异步加载模块', res.default)
	})
}, 5000)
